﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Globalization;
using System.Web.Mvc;
using System.Web.Security;

namespace RssMVC4.Models
{
    public enum FluxStatus
    {
        InvalidTitleOrUrl,
        CreatAnAccountBefore,
        Success,
        InternalError
    }

    public class Rss
    {
        public string Link { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
    }

    public class Flux
    {
        public int ID { get; set; }
        public string Link { get; set; }
        public string Title { get; set; }
        public bool isRead { get; set; }
    }

    public class DeleteRss
    {
         [Required]
        public int IdFlux { get; set; }
         [Required]
        public string UserName { get; set; }                
    }

    public class RegisterRss
    {
         [Required]
        [DataType(DataType.Url)]
        public string Link { get; set; }
         [Required]
        public string Title { get; set; }
         [Required]
        public string UserName { get; set; }
    }

    public class EditFlux
    {
        public int ID { get; set; }
        public string Link { get; set; }
        public string Title { get; set; }
    }
}